package com.fz.service;

import com.fz.controller.request.BaseRequest;
import com.fz.pojo.Category;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface CategoryService {
    List<Category> list();

    //分页
    PageInfo<Category> page(BaseRequest baseRequest);

    //添加种类
    void addCategory(Category category);

    //通过id查询用户
    Category getById(Integer id);

    void update(Category category);

    void deleteById(Integer id);


}
